/**
 * 编写人：廖龙飞
 * 时间：2016-04-28
 * 主功能：弹窗
 * Lalert（宽，高，标题，链接）；
 */
function Malert(m){
	layer.alert(m, {icon: 6});
}

function Lalert(w,h,title,url){
	if (w == null || w == '') {
		w=800;
	};
	if (h == null || h == '') {
		h=($(window).height() - 50);
	};
	if (title == null || title == '') {
		title=false;
	};
	if (url == null || url == '') {
		url="404.html";
	};
	$.layer({
    	type: 2,
    	shadeClose: true,
    	title: title,
		maxmin:false,
		shadeClose: true,
    	closeBtn: [0, true],
    	shade: [0.8, '#000'],
    	border: [0],
    	offset: ['20px',''],
    	area: [w+'px', h +'px'],
    	iframe: {src: url}
	});
}


/*
 * SELECT
 * */
var PIDS=[];

function Cinput(obj){
	var inputs=obj.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('input');
	var int=1;	
	
	for ( int ; int < inputs.length; int++) {
		if(!obj.checked){
			inputs[int].checked='';
			PIDS[inputs[int].value]=null;
		}else{
			inputs[int].checked='checked';
			PIDS[inputs[int].value]=inputs[int].value;
			
		}
		
	}
}
function selfinput(obj){
	if(!obj.checked){
		PIDS[obj.value]=null;
	}else{
		PIDS[obj.value]=obj.value;	
	}
}
